# coding: utf-8
# from database.tools.application_batch_test import db
from Flask_run import db


class Study_id(db.Model):
    __tablename__ = 'study_id'

    id = db.Column(db.Integer, primary_key=True)
    study_id = db.Column(db.String(255, 'utf8_general_ci'), unique=True,info='dicom study instance uid')
    orthanc_id = db.Column(db.String(255, 'utf8_general_ci'), info='orthanc study id')

    def __init__(self,study_id,orthanc_id):
        self.study_id = study_id
        self.orthanc_id = orthanc_id
         

